CMAKE_MINIMUM_REQUIRED(VERSION 2.8)

include_directories(${COMN_DIR}/include)
include_directories(include)
include_directories(.)

include_directories(${DIR_FFMPEG}/include)


if (MSVC)
include_directories(${THIRD_PARTY}/stdint)
endif()

include_directories(${MEDIASTORAGE_DIR}/MediaStorage)
include_directories(${MEDIASTORAGE_DIR}/RecordStore)
link_directories(${MEDIASTORAGE_DIR}/lib)

include_directories(${PSCASTER_DIR}/PsCaster)
link_directories(${PSCASTER_DIR}/lib)

link_directories(${COMN_DIR}/lib)
link_directories(${PROJECT_ROOT}/lib)

include_directories(${FFMPEG_DIR}/include)
link_directories(${FFMPEG_DIR}/bin)

aux_source_directory(. SOURCES)

add_library(PsRecordCaster SHARED ${SOURCES})

target_link_libraries(PsRecordCaster
	${LIB_PLATFORM}
	debug comnd optimized comn
	RecordStore
	PsCaster
	${FFMPEG_LIBRARIES}
	)

set_target_properties(PsRecordCaster PROPERTIES LINK_INTERFACE_LIBRARIES "")
set_target_properties(PsRecordCaster PROPERTIES INTERFACE_LINK_LIBRARIES "")


